﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model TMT_CMS.BL.Model.Home.UserLoginModel
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>供应商管理系统</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#btnSubmit').click(function () {
                $('#loginForm').submit();
            });
            $('#btnCancel').click(function () {
                $('#username').val('');
                $('#password').val('');
            });
        });
    </script>
</head>
<body>
    <!-- Header -->
    <div id="header">
        <div class="shell">
            <!-- Logo + Top Nav -->
            <div id="top">
                <h1>
                    <a href="#">TMT 供应商管理系统 </a>
                </h1>
                <div id="top-navigation">
                </div>
            </div>
            <!-- End Logo + Top Nav -->
            <!-- Main Nav -->
            <div id="navigation">
            </div>
            <!-- End Main Nav -->
        </div>
    </div>
    <!-- End Header -->
    <!-- Container -->
    <div id="container" style="min-height: 400px; text-align: center;">
        <div style="margin-left: auto; margin-right: auto; margin-top: 80px;">
            <div class="shell">
                <div id="main" style="text-align: center;">
                    <!-- Content -->
                    <div id="content" style="margin-left: auto; margin-right: auto; width: 400px; float: none;">
                        <!-- Box -->
                        <div class="box">
                            <!-- Box Head -->
                            <div class="box-head" style="height: 60px; padding-top: 8px; background: #A70014;">
                                <img src="@Url.Content("~/Content/images/logo.png")"/>
                            </div>
                            <!-- End Box Head -->
                            <!-- Table -->
                            <div class="table">
                                @using (Html.BeginForm("Login", "Home", FormMethod.Post, new { ID = "loginForm" }))
                                {   
                                    @Html.ValidationSummary(true)
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="100px" align="right">
                                                用户名：
                                            </td>
                                            <td align="left">
                                                @Html.TextBoxFor(m => m.UserName, new { name = "username", id = "username", @class = "field size4" })
                                                @Html.ValidationMessageFor(m => m.UserName)
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                密码：
                                            </td>
                                            <td align="left">
                                                @Html.PasswordFor(m => m.Password, new { name = "password", id = "password", @class = "field size4" })
                                                @Html.ValidationMessageFor(m => m.Password)
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                            </td>
                                            <td align="left">
                                                <a href="javascript:void()" id="btnSubmit" class="submit-button"><span>登录</span></a>
                                                &nbsp;&nbsp;&nbsp;&nbsp; <a href="#" class="cancel-button" id="btnCancel" style="margin-left: 10px;">
                                                    <span>清空</span></a>
                                            </td>
                                        </tr>
                                    </table>
                                }
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Container -->
    <!-- Footer -->
    <div id="footer">
        <div class="shell">
            <span class="left">&copy; 2012 供应商管理系统</span> <span class="right">Design by </span>
        </div>
    </div>
    <!-- End Footer -->
</body>
</html>
@{
    Layout = string.Empty;
}
